package com.core.zyyz.amc.modules.controller;

import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.core.common.core.controller.BaseController;
import com.core.zyyz.amc.modules.domain.AmcSysNationalityCodeB;
import com.core.zyyz.amc.modules.service.AmcSysNationalityCodeBService;
import com.core.common.core.page.TableDataInfo;

/**
 * 国籍Controller
 *
 * @author lfs
 * @date 2024-12-05
 */
@RestController
@RequestMapping("/amc/nationality")
public class AmcSysNationalityCodeBController extends BaseController
{
    @Autowired
    private AmcSysNationalityCodeBService amcSysNationalityCodeBService;

    /**
     * 查询国籍列表
     */
    @PreAuthorize("@ss.hasPermi('amc:nationality:list')")
    @GetMapping("/list")
    public TableDataInfo list(AmcSysNationalityCodeB amcSysNationalityCodeB) {
        startPage();
        List<AmcSysNationalityCodeB> list = amcSysNationalityCodeBService.selectAmcSysNationalityCodeBList(amcSysNationalityCodeB);
        return getDataTable(list);
    }

}
